/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lu.med.praxiswahl.wahlumed.model.beans;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;

/**
 * 
 * @author pkendzo
 */
@Entity
@Table(name = "PRAXIS_COTARIFE")
public class CodeRatesTBL implements Serializable
{
    private static final long serialVersionUID = 1L;

    public CodeRatesTBL()
    {

    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String label;
    private String beschreibung;
    private Double preis_A;
    private Double preis_B;
    
    @Column(name="PRIORITAET")
    private int prioritaet;

    public Long getId()
    {
	return id;
    }

    public void setId(Long id)
    {
	this.id = id;
    }

    @Override
    public int hashCode()
    {
	int hash = 0;
	hash += (id != null ? id.hashCode() : 0);
	return hash;
    }

    @Override
    public boolean equals(Object object)
    {
	// TODO: Warning - this method won't work in the case the id fields are
	// not set
	if (!(object instanceof CodeRatesTBL))
	{
	    return false;
	}
	CodeRatesTBL other = (CodeRatesTBL) object;
	if ((this.id == null && other.id != null)
		|| (this.id != null && !this.id.equals(other.id)))
	{
	    return false;
	}
	return true;
    }

    @Override
    public String toString()
    {
	return "lu.med.praxiswahl.wahlumed.model.beans.CodeTarifTBL[id=" + id + "]";
    }

    public String getBeschreibung()
    {
	return beschreibung;
    }

    public void setBeschreibung(String beschreibung)
    {
	this.beschreibung = beschreibung;
    }

    public String getLabel()
    {
	return label;
    }

    public void setLabel(String label)
    {
	this.label = label;
    }

    public Double getPreis_B()
    {
	return preis_B;
    }

    public void setPreis_B(Double preis_B)
    {
	this.preis_B = preis_B;
    }

    public Double getPreis_A()
    {
	return preis_A;
    }

    public void setPreis_A(Double preis_A)
    {
	this.preis_A = preis_A;
    }

    public void setPrioritaet(int prioritaet)
    {
	this.prioritaet = prioritaet;
    }

    public int getPrioritaet()
    {
	return prioritaet;
    }

}
